package com.example.springcloudwinter.controller;

import com.example.springcloudwinter.dto.ResultEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FallbackController {
    @RequestMapping("/fallback")
    public ResultEntity<?> fallback() {
        ResultEntity<String> result=new ResultEntity<>();
        result.setCode(302).setDetail("熔断");
        return result;
    }
}
